package com.coming.mySpring.base.query;

import lombok.Data;

@Data
public class BaseQuery {
    /*当前页*/
    private Integer currentPage = 1;

    /*每页条数*/
    private Integer pageSize = 5;

    /*关键字*/
    private String keyword;


    /*计算分页的其实行数*/
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
}
